create_empty_csr_matrix Function

public function create_empty_csr_matrix(m, n, nnz, err) result(rst)

Creates an empty CSR matrix.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: m

The number of rows in the matrix.

integer(kind=int32), intent(in) :: n

The number of columns in the matrix.

integer(kind=int32), intent(in) :: nnz

The number of non-zero values in the matrix.

class(errors), intent(inout), optional, target :: err

The error object to be updated.

Return Value type(csr_matrix)

The empty CSR matrix.